<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>上传文件列表</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('#show_list').find('tr').hover(function(){
		$(this).find('td').css('background','#ccffcc');
	},function(){
		$(this).find('td').css('background','');
	});
	
});
</script>
<?php
	$tech_num = (count($tech_arr)-1);
	$show_tech = $tech_arr[rand(0,$tech_num)];
?>
<!--
<script type="text/javascript">

	$(document).ready(function(){
		$str = '<?php echo $show_tech;?>';
		$('#show_tech').html("<em>小提示：</em>"+$str).fadeIn('slow');
	});

</script>
-->
</head>

<body>
<div class="admin_position"><span>当前位置 > 上传文件列表</span><p id="show_tech" style="display:none"></p></div><!--位置-->


 
<div class="order_contain">
<div class="order_main">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th style="width:5%">ID</th><th style="width:20%">文件说明</th><th style="width:20%">上传时间</th><th style="width:25%">文件名</th><th style="width:10%">格式</th><th style="width:20%">操作</th></tr>
	</thead>
	<tbody id="show_list">
	<?php
	if(!empty($rel)){
	foreach($rel as $k=>$v){
	$file=$v['file_path'];
	?>
	<tr><td style="width:5%;text-align:center" align="center"><?php echo $v['id'];?></td><td style="width:20%;text-align:center" align="center"><?php echo $v['file_info'];?></td><td scope="width:20%;text-align:center" align="center"><?php echo date('Y-m-d H:m:s',$v['file_time']);?></td><td style="width:25%; text-align:center"><?php echo $v['file_path'];?></td><td style="width:10%; text-align:center"><?php echo $v['file_ext'];?></td><td style="width:20%;text-align:center" align="center"><a href="javascript:if(confirm('确定要删除么？删除后不可恢复')){location.href='admin_file.php?action=del&id=<?php echo $v['id'];?>';}">删除</a>|<a href="?action=edit_file&id=<?php echo $v['id'];?>">修改</a></td></tr>
	<?php
	}
	}
	?>

		
		</tbody>
 </table>
 </div>
<div class="page page_fy">
 	<ul>
		<?php echo page('admin_file.php',$page,$query,$total_num,$total_page);?>
	</ul>
 </div>
</div><!--内容切换-->

<div class="ie8-height"></div>


</body>
</html>
